package com.ioday01demo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class Test {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("fos.txt");
        String s = "\r\n";
        byte[] data = s.getBytes(StandardCharsets.UTF_8);
        for (int i = 97; i <= 122; i++) {
            fos.write(i);
            fos.write(data);

        }
        System.out.println("写入完成");
        fos.close();
    }
}
